from fastapi import APIRouter
from .client import client_api
from .manager import manager_api
from .dev import dev_api
from ..config import pkgm_config

all_api_router = APIRouter(prefix="/api")

def init_api_router(router_item):
    for item in router_item:
        all_api_router.include_router(item)

init_api_router(client_api)
init_api_router(manager_api)


if pkgm_config.run_model == "debug":
    init_api_router(dev_api)
